package com.miao.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.admin.dao.AdminProductDao;
import com.miao.admin.entity.vo.ProductVO;
import com.miao.admin.service.AdminProductService;
import com.miao.common.entity.pojo.Product;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品表(Product)表服务实现类
 *
 * @author MiaoWenqing
 * @since 2021-02-03 13:46:24
 */
@Service
public class AdminProductServiceImpl extends ServiceImpl<AdminProductDao, Product> implements AdminProductService {


    @Resource
    private AdminProductDao adminProductDao;

    @Override
    public List<ProductVO> proStoreAll(String storeId) {

        return this.adminProductDao.proStoreAll(storeId);
    }

    /**
     * 获取 首页降价优惠 商品
     *
     * @return
     */
    @Override
    public List<Product> proRedList() {


        return this.adminProductDao.proRedList() ;
    }

    /**
     * 获取 首页好物推荐 商品
     *
     * @return
     */
    @Override
    public List<Product> proRecList() {
        return this.adminProductDao.proRecList();
    }


}